package com.game.framework.dao.repository;

import com.game.framework.dao.entity.RoleEntity;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface RoleRepository extends MongoRepository<RoleEntity, Long>{

    List<RoleEntity> findByUserId(Long userId);

    RoleEntity findByRoleId(Long roleId);
}
